package com.example.springboot26.filter;


import javax.servlet.*;
import java.io.IOException;

/**
 * 项目名称：springboot26
 * 类 名 称：MyFilter
 * 类 描 述：TODO
 * 创建时间：2020/2/6 9:03 下午
 */
public class MyFilter implements Filter {

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("MyFilter is starting");
        filterChain.doFilter(servletRequest, servletResponse);
    }

    @Override
    public void destroy() {

    }
}
